home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / RIncludes / AppleEvents.r < prev    next >
Encoding:
Text File  |  1997-08-12  |  3.6 KB  |  85 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        AppleEvents.r
  3.  
  4.      Contains:    AppleEvent Package Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1989-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18.  
  19. #ifndef __APPLEEVENTS_R__
  20. #define __APPLEEVENTS_R__
  21.  
  22. #ifndef __CONDITIONALMACROS_R__
  23. #include "ConditionalMacros.r"
  24. #endif
  25.  
  26. #ifndef __AEDATAMODEL_R__
  27. #include "AEDataModel.r"        /* data types have moved to AEDataModel.r */
  28. #endif
  29.  
  30.                                                             /*  Keywords for Apple event parameters  */
  31. #define keyDirectObject                 '----'
  32. #define keyErrorNumber                     'errn'
  33. #define keyErrorString                     'errs'
  34. #define keyProcessSerialNumber             'psn '                /*  Keywords for special handlers  */
  35. #define keyPreDispatch                     'phac'                /*  preHandler accessor call  */
  36. #define keySelectProc                     'selh'                /*  more selector call  */
  37.                                                             /*  Keyword for recording  */
  38. #define keyAERecorderCount                 'recr'                /*  available only in vers 1.0.1 and greater  */
  39.                                                             /*  Keyword for version information  */
  40. #define keyAEVersion                     'vers'                /*  available only in vers 1.0.1 and greater  */
  41.  
  42. /* Event Class */
  43. #define kCoreEventClass                 'aevt'
  44. /* Event ID’s */
  45. #define kAEOpenApplication                 'oapp'
  46. #define kAEOpenDocuments                 'odoc'
  47. #define kAEPrintDocuments                 'pdoc'
  48. #define kAEQuitApplication                 'quit'
  49. #define kAEAnswer                         'ansr'
  50. #define kAEApplicationDied                 'obit'
  51.  
  52. /* Constants for recording */
  53. #define kAEStartRecording                 'reca'                /*  available only in vers 1.0.1 and greater  */
  54. #define kAEStopRecording                 'recc'                /*  available only in vers 1.0.1 and greater  */
  55. #define kAENotifyStartRecording         'rec1'                /*  available only in vers 1.0.1 and greater  */
  56. #define kAENotifyStopRecording             'rec0'                /*  available only in vers 1.0.1 and greater  */
  57. #define kAENotifyRecording                 'recr'                /*  available only in vers 1.0.1 and greater  */
  58.  
  59.  
  60. /* parameter to AESend */
  61. #define kAENeverInteract                 0x00000010            /*  server should not interact with user  */
  62. #define kAECanInteract                     0x00000020            /*  server may try to interact with user  */
  63. #define kAEAlwaysInteract                 0x00000030            /*  server should always interact with user where appropriate  */
  64. #define kAECanSwitchLayer                 0x00000040            /*  interaction may switch layer  */
  65. #define kAEDontRecord                     0x00001000            /*  don't record this event - available only in vers 1.0.1 and greater  */
  66. #define kAEDontExecute                     0x00002000            /*  don't send the event for recording - available only in vers 1.0.1 and greater  */
  67. #define kAEProcessNonReplyEvents         0x00008000            /*  allow processing of non-reply events while awaiting synchronous AppleEvent reply  */
  68.  
  69. #define kAENoReply                         0x00000001            /*  sender doesn't want a reply to event  */
  70. #define kAEQueueReply                     0x00000002            /*  sender wants a reply but won't wait  */
  71. #define kAEWaitReply                     0x00000003            /*  sender wants a reply and will wait  */
  72. #define kAEDontReconnect                 0x00000080            /*  don't reconnect if there is a sessClosedErr from PPCToolbox  */
  73. #define kAEWantReceipt                     0x00000200            /*  (nReturnReceipt) sender wants a receipt of message  */
  74.  
  75.  
  76. /* Constants for timeout durations */
  77.  
  78. /* priority param of AESend */
  79. #define kAENormalPriority                 0x00000000            /*  post message at the end of the event queue  */
  80. #define kAEHighPriority                 0x00000001            /*  post message at the front of the event queue (same as nAttnMsg)  */
  81.  
  82.  
  83. #endif /* __APPLEEVENTS_R__ */
  84.  
  85.